package com.alibaba.dubbo.demo.provider;

import java.util.List;

import com.alibaba.dubbo.demo.SysUserRoleInterface;
import com.alibaba.dubbo.demo.bean.PageBean;
import com.alibaba.dubbo.demo.bean.SysUserRole;
import com.alibaba.dubbo.demo.provider.dao.impl.SysUserRoleDaoImpl;

public class SysUserRoleServiceImpl implements SysUserRoleInterface {

	SysUserRoleDaoImpl sysUserRoleDao;
	
	
	public SysUserRoleDaoImpl getSysUserRoleDao() {
		return sysUserRoleDao;
	}

	public void setSysUserRoleDao(SysUserRoleDaoImpl sysUserRoleDao) {
		this.sysUserRoleDao = sysUserRoleDao;
	}

	@Override
	public PageBean queryAllSysUserRole(PageBean pageBean, int userid, String usercode, String username, int roleid,
			String rolecode, String rolename) {
		// TODO Auto-generated method stub
		return sysUserRoleDao.queryAllSysUserRole(pageBean, userid, usercode, username, roleid, rolecode, rolename);
	}

	@Override
	public List<SysUserRole> queryAllSysUserRoleList(int userid, String usercode, String username, int roleid,
			String rolecode, String rolename) {
		// TODO Auto-generated method stub
		return sysUserRoleDao.queryAllSysUserRoleList(userid, usercode, username, roleid, rolecode, rolename);
	}

	@Override
	public SysUserRole queryOneSysUserRole(int id) {
		// TODO Auto-generated method stub
		return sysUserRoleDao.queryOneSysUserRole(id);
	}

	@Override
	public boolean saveSysUserRole(SysUserRole sysRoleFunc) {
		// TODO Auto-generated method stub
		return sysUserRoleDao.saveSysUserRole(sysRoleFunc);
	}

	@Override
	public boolean updateSysUserRole(SysUserRole sysRoleFunc) {
		// TODO Auto-generated method stub
		return sysUserRoleDao.updateSysUserRole(sysRoleFunc);
	}

	@Override
	public boolean deleteSysUserRole(int id) {
		// TODO Auto-generated method stub
		return sysUserRoleDao.deleteSysUserRole(id);
	}

	@Override
	public boolean updateSysUserRole(int userid, String rolelist) {
		// TODO Auto-generated method stub
		return sysUserRoleDao.updateSysUserRole(userid, rolelist);
	}

}
